package FriendTable;

public class Friend {
    private int id;
    private String name;
    private char gender;
    private int age;
    private int favorability;
    private String evaluation;

    public Friend(int id, String name, char gender, int age, int favorability, String evaluation) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.favorability = favorability;
        this.evaluation = evaluation;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getFavorability() {
        return favorability;
    }

    public void setFavorability(int favorability) {
        this.favorability = favorability;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    /*
    @Override
    public String toString() {
        return "Friend{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                ", favorability=" + favorability +
                ", evaluation='" + evaluation + '\'' +
                '}';
    }

     */
    @Override
    public String toString() {
        return
                "序列号=" + id +
                ", 姓名='" + name + '\'' +
                ", 性别=" + gender +
                ", 年龄=" + age +
                ", 好感度=" + favorability +
                ", 评价='" + evaluation + '\'' +
                '}';
    }
}